home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / lanscrip.zip / XZCOPY.BAT < prev    next >
DOS Batch File  |  1993-06-26  |  2KB  |  54 lines

  1. @echo off
  2. REM kontrole van gebruik
  3.  
  4. if .%1 == . goto gebruik
  5.  
  6. REM **************************************************************************
  7.  
  8. REM informatie
  9. set net_error=0
  10. @echo DUE TO BEING OFF-LINE OR DENIED ACCESS THE FOLLOWING STATIONS DIDN'T RECEIVE SWD >zlog
  11. @echo -------------------------------------------------------------------------------- >>zlog
  12. REM %1 == MACHINE NAME TO COPY TO
  13. REM *************************************************************************
  14. REM errorlevel 53 ==== Cannot locate network name
  15. REM errorlevel 85 ==== Login to the network NODE
  16. REM errorlevel 86 ==== Invalid USR name
  17. REM *************************************************************************
  18.  
  19. REM START
  20.  
  21. REM ************************** MACHINE **************************************
  22. @echo off
  23. set net_error=???
  24. rem station MACHINE
  25. net/noerror logout %1
  26. net/noerror login %1 lvg a
  27. if %net_error%==53 goto xma
  28. if %net_error%==86 goto xm
  29. if %net_error%==85 goto xmac
  30. :xmac
  31. net/noerror use h: \\%1\c-drive 
  32. copy e:\upd_net\all\*.* h:\cds_sys\*.* >>zlog
  33. net/noerror logout %1
  34. goto xx
  35. :xma
  36. @echo %1 (OFFLINE) >>zlog
  37. @echo %1 >>bdvlog
  38. @echo %1 ******************************* OFFLINE !!
  39. goto xxx
  40. :xm
  41. @echo %1 VERKEERD ********************* PASWOORD !!
  42. @echo %1 (ACCESS DENIED) >>zlog
  43. @echo %1 >>bdvlog
  44. goto xxx
  45. :xx
  46. @echo %1 finished.
  47. :xxx
  48.  
  49. REM ********************************* EINDE ***********************************
  50. goto einde
  51. :gebruik
  52. @echo USAGE (XZCOPY {MACHINE})
  53. :einde
  54.